package com.zy.dp.abstractfactory.example4;

public class Business
{
	public static void main(String[] args)
	{

		DAOFactory df = new RdbDAOFactory();

		OrderMainDAO mainDAO = df.createOrderMainDAO();
		OrderDetailDAO detailDAO = df.createOrderDetailDAO();

		mainDAO.saveOrderMain();
		detailDAO.savaOrderDetail();

	}
}
